package com.learn.english.model.ro;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import java.util.*;

/**
 * @author TISNIW
 * @version 1.0
 * @desc
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Choices {
    @JsonProperty("message")
    private List<Message> message;
    @JsonProperty("finish_reason")
    private String finishReason;
    class Message{
        @JsonProperty("role")
        private String role;
        @JsonProperty("content")
        private String content;
        @JsonProperty("reasoning_content")
        private String reasoningContent;//推理内容
        @JsonProperty("tool_calls")
        private List<ToolCall> toolCalls;
        class ToolCall{
            @JsonProperty("id")
            private String id;
            @JsonProperty("type")
            private String type;
            @JsonProperty("function")
            private Function function;
            class Function{
                @JsonProperty("name")
                private String name;
                @JsonProperty("arguments")
                private String arguments;
            }
        }

    }
}
